home *** CD-ROM | disk | FTP | other *** search
/ Trading on the Edge / Trading On The Edge - CD-ROM Toolkit (Wayzata Technology)(2031)(1994).bin / mac / Mac_Files / Software Utilities / NN PreProcessing / FIN.H next >
C/C++ Source or Header  |  1992-08-25  |  3KB  |  77 lines

  1. /* 12:05 15-Aug-92  (fin.h)  Financial Routine Header */
  2.  
  3. #ifndef FINH
  4.  
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include <string.h>
  8. #include <math.h>
  9.  
  10. /************************************************************************
  11.  * Copyright(C) 1992 High-Tech Communications.                          *
  12.  * 103 Buckskin Court, Sewickley, PA 15143                              *
  13.  *                                                                      *
  14.  * Written by Casimir C. Klimasauskas                                   *
  15.  *                                                                      *
  16.  * All rights reserved.  No part of this program may be reproduced,     *
  17.  * stored in a retrieval system, or tramsmitted, in any form or by any  *
  18.  * means, electronic, mechanical, photocopying, recording or otherwise  *
  19.  * without the prior written permission of the copyright owner,         *
  20.  * High-Tech Communications.                                            *
  21.  *                                                                      *
  22.  * These programs are supplied on an "as-is" basis with no warranties   *
  23.  * of fitness or operability, either express or implied.                *
  24.  *                                                                      *
  25.  ************************************************************************
  26.  */
  27.  
  28. /************************************************************************
  29.  *                                    *
  30.  *    Support for ANSI and non-ANSI compilers                *
  31.  *                                    *
  32.  ************************************************************************
  33.  */
  34.  
  35. #ifdef ANSI
  36. #define    ARGS(x)    x    /* ANSI */
  37. #else
  38. #define    ARGS(x)    ()    /* non-ANSI */
  39. #endif
  40.  
  41. /************************************************************************
  42.  *                                    *
  43.  *    Maximum Limits for this system.  Data is dynamically allocated.    *
  44.  *                                    *
  45.  ************************************************************************
  46.  */
  47.  
  48. #define    MAXSL        256    /* max session line size */
  49. #define    MAXTL        32    /* max length of a ticker symbol */
  50.  
  51. #define MAXFIELD    513    /* max number of merged fields */
  52. #define    MAXTF        1024    /* max number of transformed fields */
  53. #define    MAXFL        8192    /* max size of data-base line */
  54. #define    MAXVECSIZE    0xfff0L    /* max size for a vector */
  55.  
  56. /************************************************************************
  57.  *                                    *
  58.  *    Global Routine Definitions                    *
  59.  *                                    *
  60.  ************************************************************************
  61.  */
  62.  
  63. /* --- Dictionary Routines --- */
  64.  
  65. double Asc2NumD ARGS((char *,int));    /* convert number to double */
  66.  
  67. long  Date2BinL ARGS((char *));    /* convert date to long */
  68. char *Date2StrCP ARGS((long));    /* convert a long to date */
  69.  
  70. void  DCFreeV();        /* free dictionary structures */
  71. void  DCInitV ARGS((long));    /* initialize dictionary */
  72. char *DCLwrPkCP ARGS((char *));    /* pack & convert to lower case */
  73. char *DCDupCP ARGS((char *));    /* store string in dictionary */
  74.  
  75. #define    FINH    1
  76. #endif    /* ifndef FINH */
  77.